From ee9536b3cf8824203d4ff22cd8fce8de881e6d2c Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 28 Dec 2007 05:43:07 +0000 Subject: [PATCH] Let the sscanf based timestamps be additive on a read. --- csv_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csv_util.c b/csv_util.c index f5dd1df8a..437b8d172 100644 --- a/csv_util.c +++ b/csv_util.c @@ -1019,10 +1019,10 @@ xcsv_parse_val(const char *s, waypoint *wpt, const field_map_t *fmp) wpt->creation_time = yyyymmdd_to_time(s); break; case XT_GMT_TIME: - wpt->creation_time = sscanftime(s, fmp->printfc, 1); + wpt->creation_time += sscanftime(s, fmp->printfc, 1); break; case XT_LOCAL_TIME: - wpt->creation_time = sscanftime(s, fmp->printfc, 0); + wpt->creation_time += sscanftime(s, fmp->printfc, 0); break; /* Useful when time and date are in separate fields GMT / Local offset is handled by the two cases above */ -- 2.30.2